home *** CD-ROM | disk | FTP | other *** search
/ The Macintosh Demo: Applications / Apple-MacintoshDemoApplicationsCD-1.0-1992.iso / More Information / QuicKeys / For Programmers Only.sea / C Examples / SampleXhdr.c < prev   
MacBinary  |  1991-06-22  |  2.3 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat Jun 22 02:00:00 1991, modified Sat Jun 22 02:00:00 1991, creator Think C, type ASCII, 1698 bytes "SampleXhdr.c" , at 0x722 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 53 61 6d 70 6c 65 | 58 68 64 72 2e 63 00 00 |..Sample|Xhdr.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 06 a2 00 | 00 01 7e a4 88 97 e0 a4 |........|..~.....|
|00000060| 88 97 e0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 4b 52 00 00 |........|....KR..|
|00000080| 2f 2a 0d 09 24 57 6f 72 | 6b 66 69 6c 65 3a 20 20 |/*..$Wor|kfile: |
|00000090| 20 53 61 6d 70 6c 65 58 | 68 64 72 2e 63 20 20 24 | SampleX|hdr.c $|
|000000a0| 0d 09 24 52 65 76 69 73 | 69 6f 6e 3a 20 20 20 31 |..$Revis|ion: 1|
|000000b0| 2e 30 20 20 24 0d 09 09 | 09 09 09 09 09 0d 09 51 |.0 $...|.......Q|
|000000c0| 75 69 63 4b 65 79 73 20 | 73 61 6d 70 6c 65 20 65 |uicKeys |sample e|
|000000d0| 78 74 65 6e 73 69 6f 6e | 20 65 78 65 63 75 74 69 |xtension| executi|
|000000e0| 6f 6e 20 72 6f 75 74 69 | 6e 65 0d 09 0d 09 63 75 |on routi|ne....cu|
|000000f0| 73 74 6f 6d 20 68 65 61 | 64 65 72 20 66 6f 72 20 |stom hea|der for |
|00000100| 54 68 69 6e 6b 20 43 0d | 0d 09 a9 20 31 39 39 30 |Think C.|... 1990|
|00000110| 20 43 45 20 53 6f 66 74 | 77 61 72 65 2c 20 49 6e | CE Soft|ware, In|
|00000120| 63 2e 20 20 41 6c 6c 20 | 72 69 67 68 74 73 20 72 |c. All |rights r|
|00000130| 65 73 65 72 76 65 64 2e | 0d 09 09 09 0d 09 46 6f |eserved.|......Fo|
|00000140| 72 20 51 75 69 63 4b 65 | 79 73 20 32 20 45 78 74 |r QuicKe|ys 2 Ext|
|00000150| 65 6e 73 69 6f 6e 20 53 | 61 6d 70 6c 65 20 73 6f |ension S|ample so|
|00000160| 75 72 63 65 20 63 6f 64 | 65 20 79 6f 75 20 68 61 |urce cod|e you ha|
|00000170| 76 65 20 61 20 72 6f 79 | 61 6c 74 79 2d 66 72 65 |ve a roy|alty-fre|
|00000180| 65 20 72 69 67 68 74 0d | 09 74 6f 20 69 6e 63 6c |e right.|.to incl|
|00000190| 75 64 65 20 6f 62 6a 65 | 63 74 20 63 6f 64 65 20 |ude obje|ct code |
|000001a0| 64 65 72 69 76 65 64 20 | 66 72 6f 6d 20 74 68 69 |derived |from thi|
|000001b0| 73 20 53 61 6d 70 6c 65 | 20 73 6f 75 72 63 65 20 |s Sample| source |
|000001c0| 63 6f 64 65 20 69 6e 20 | 70 72 6f 67 72 61 6d 73 |code in |programs|
|000001d0| 0d 09 74 68 61 74 20 79 | 6f 75 20 64 65 76 65 6c |..that y|ou devel|
|000001e0| 6f 70 2e 20 20 59 6f 75 | 20 61 6c 73 6f 20 68 61 |op. You| also ha|
|000001f0| 76 65 20 74 68 65 20 72 | 69 67 68 74 20 74 6f 20 |ve the r|ight to |
|00000200| 75 73 65 2c 20 64 69 73 | 74 72 69 62 75 74 65 2c |use, dis|tribute,|
|00000210| 20 61 6e 64 20 6c 69 63 | 65 6e 73 65 0d 09 73 75 | and lic|ense..su|
|00000220| 63 68 20 70 72 6f 67 72 | 61 6d 73 20 74 6f 20 74 |ch progr|ams to t|
|00000230| 68 69 72 64 20 70 61 72 | 74 69 65 73 20 77 69 74 |hird par|ties wit|
|00000240| 68 6f 75 74 20 70 61 79 | 6d 65 6e 74 20 6f 66 20 |hout pay|ment of |
|00000250| 61 6e 79 20 66 75 72 74 | 68 65 72 20 6c 69 63 65 |any furt|her lice|
|00000260| 6e 73 65 20 66 65 65 73 | 0d 09 74 6f 20 43 45 20 |nse fees|..to CE |
|00000270| 53 6f 66 74 77 61 72 65 | 2c 20 49 6e 63 2e 2c 20 |Software|, Inc., |
|00000280| 73 6f 20 6c 6f 6e 67 20 | 61 73 20 61 20 63 6f 70 |so long |as a cop|
|00000290| 79 72 69 67 68 74 20 6e | 6f 74 69 63 65 20 73 75 |yright n|otice su|
|000002a0| 66 66 69 63 69 65 6e 74 | 20 74 6f 20 70 72 6f 74 |fficient| to prot|
|000002b0| 65 63 74 0d 09 79 6f 75 | 72 20 63 6f 70 79 72 69 |ect..you|r copyri|
|000002c0| 67 68 74 20 66 6f 72 20 | 79 6f 75 72 20 73 6f 66 |ght for |your sof|
|000002d0| 74 77 61 72 65 20 69 6e | 20 74 68 65 20 55 6e 69 |tware in| the Uni|
|000002e0| 74 65 64 20 53 74 61 74 | 65 73 20 6f 72 20 61 6e |ted Stat|es or an|
|000002f0| 79 20 6f 74 68 65 72 20 | 63 6f 75 6e 74 72 79 3b |y other |country;|
|00000300| 0d 09 69 73 20 69 6e 63 | 6c 75 64 65 64 20 69 6e |..is inc|luded in|
|00000310| 20 74 68 65 20 67 72 61 | 70 68 69 63 20 64 69 73 | the gra|phic dis|
|00000320| 70 6c 61 79 20 6f 66 20 | 79 6f 75 72 20 73 6f 66 |play of |your sof|
|00000330| 74 77 61 72 65 20 61 6e | 64 20 6f 6e 20 74 68 65 |tware an|d on the|
|00000340| 20 6c 61 62 65 6c 73 0d | 09 61 66 66 69 78 65 64 | labels.|.affixed|
|00000350| 20 74 6f 20 74 68 65 20 | 6d 65 64 69 61 20 6f 6e | to the |media on|
|00000360| 20 77 68 69 63 68 20 79 | 6f 75 72 20 73 6f 66 74 | which y|our soft|
|00000370| 77 61 72 65 20 69 73 20 | 64 69 73 74 72 69 62 75 |ware is |distribu|
|00000380| 74 65 64 2e 0d 0d 09 57 | 48 45 4e 09 57 48 4f 09 |ted....W|HEN.WHO.|
|00000390| 09 57 48 41 54 0d 0d 43 | 68 65 63 6b 65 64 20 69 |.WHAT..C|hecked i|
|000003a0| 6e 20 62 79 20 4d 61 72 | 73 68 20 47 6f 73 6e 65 |n by Mar|sh Gosne|
|000003b0| 6c 6c 2c 20 57 65 64 6e | 65 73 64 61 79 2c 20 53 |ll, Wedn|esday, S|
|000003c0| 65 70 74 65 6d 62 65 72 | 20 35 2c 20 31 39 39 30 |eptember| 5, 1990|
|000003d0| 20 31 32 3a 34 35 3a 33 | 39 20 50 4d 0d 09 38 2f | 12:45:3|9 PM..8/|
|000003e0| 32 38 09 6d 6b 67 09 09 | 63 72 65 61 74 65 64 20 |28.mkg..|created |
|000003f0| 66 69 6c 65 0d a5 a5 a5 | a5 a5 0d 09 0d a5 a5 a5 |file....|........|
|00000400| a5 a5 0d 2a 2f 0d 0d 65 | 78 74 65 72 6e 20 70 61 |...*/..e|xtern pa|
|00000410| 73 63 61 6c 20 76 6f 69 | 64 20 64 6f 45 78 65 63 |scal voi|d doExec|
|00000420| 75 74 65 28 29 3b 0d 0d | 2f 2a 20 74 68 65 20 66 |ute();..|/* the f|
|00000430| 69 72 73 74 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |irst fun|ction in|
|00000440| 20 74 68 65 20 66 69 6c | 65 2c 20 6f 75 72 20 63 | the fil|e, our c|
|00000450| 75 73 74 6f 6d 20 68 65 | 61 64 65 72 20 2a 2f 0d |ustom he|ader */.|
|00000460| 6d 61 69 6e 28 29 20 7b | 0d 09 61 73 6d 20 7b 0d |main() {|..asm {.|
|00000470| 09 64 63 2e 6c 09 30 09 | 09 09 09 09 09 3b 20 6e |.dc.l.0.|.....; n|
|00000480| 65 78 74 20 65 6e 74 72 | 79 20 69 6e 20 74 68 65 |ext entr|y in the|
|00000490| 20 71 75 65 75 65 0d 0d | 09 64 63 2e 6c 09 30 09 | queue..|.dc.l.0.|
|000004a0| 09 09 09 09 09 3b 20 65 | 78 74 65 6e 73 69 6f 6e |.....; e|xtension|
|000004b0| 20 63 72 65 61 74 6f 72 | 0d 0d 09 64 63 2e 77 09 | creator|...dc.w.|
|000004c0| 30 09 09 09 09 09 09 3b | 20 66 6c 61 67 73 0d 0d |0......;| flags..|
|000004d0| 09 64 63 2e 6c 09 30 09 | 09 09 09 09 09 3b 20 65 |.dc.l.0.|.....; e|
|000004e0| 78 74 65 6e 73 69 6f 6e | 20 66 69 6c 65 20 6e 61 |xtension| file na|
|000004f0| 6d 65 0d 09 64 63 2e 6c | 09 30 0d 09 64 63 2e 6c |me..dc.l|.0..dc.l|
|00000500| 09 30 0d 09 64 63 2e 6c | 09 30 0d 09 64 63 2e 6c |.0..dc.l|.0..dc.l|
|00000510| 09 30 0d 09 64 63 2e 6c | 09 30 0d 09 64 63 2e 6c |.0..dc.l|.0..dc.l|
|00000520| 09 30 0d 09 64 63 2e 6c | 09 30 0d 0d 09 64 63 2e |.0..dc.l|.0...dc.|
|00000530| 6c 09 30 09 09 09 09 09 | 09 3b 20 53 49 43 4e 20 |l.0.....|.; SICN |
|00000540| 74 6f 20 64 69 73 70 6c | 61 79 0d 09 64 63 2e 6c |to displ|ay..dc.l|
|00000550| 09 30 0d 09 64 63 2e 6c | 09 30 0d 09 64 63 2e 6c |.0..dc.l|.0..dc.l|
|00000560| 09 30 0d 09 64 63 2e 6c | 09 30 0d 09 64 63 2e 6c |.0..dc.l|.0..dc.l|
|00000570| 09 30 0d 09 64 63 2e 6c | 09 30 0d 09 64 63 2e 6c |.0..dc.l|.0..dc.l|
|00000580| 09 30 0d 0d 09 64 63 2e | 6c 09 30 09 09 09 09 09 |.0...dc.|l.0.....|
|00000590| 09 3b 6f 75 72 20 72 65 | 66 63 6f 6e 2c 20 69 66 |.;our re|fcon, if|
|000005a0| 20 77 65 20 77 61 6e 74 | 20 69 74 0d 0d 09 6c 69 | we want| it...li|
|000005b0| 6e 6b 09 41 36 2c 23 30 | 09 09 09 09 09 3b 20 65 |nk.A6,#0|.....; e|
|000005c0| 78 65 63 75 74 69 6f 6e | 20 73 74 61 72 74 73 20 |xecution| starts |
|000005d0| 68 65 72 65 0d 0d 09 6d | 6f 76 65 2e 77 09 31 32 |here...m|ove.w.12|
|000005e0| 28 41 36 29 2c 2d 28 41 | 37 29 09 09 09 3b 20 70 |(A6),-(A|7)...; p|
|000005f0| 75 73 68 20 73 65 6c 65 | 63 74 6f 72 0d 09 6d 6f |ush sele|ctor..mo|
|00000600| 76 65 2e 6c 09 38 28 41 | 36 29 2c 41 30 09 09 09 |ve.l.8(A|6),A0...|
|00000610| 09 3b 20 67 65 74 20 61 | 64 64 72 65 73 73 20 6f |.; get a|ddress o|
|00000620| 66 20 63 75 72 72 65 6e | 74 20 6b 65 79 20 64 61 |f curren|t key da|
|00000630| 74 61 0d 09 6c 65 61 09 | 09 30 78 37 42 34 28 41 |ta..lea.|.0x7B4(A|
|00000640| 30 29 2c 41 30 0d 09 6d | 6f 76 65 2e 6c 09 41 30 |0),A0..m|ove.l.A0|
|00000650| 2c 2d 28 41 37 29 0d 09 | 70 65 61 09 09 6d 61 69 |,-(A7)..|pea..mai|
|00000660| 6e 09 09 09 09 09 3b 20 | 61 64 64 72 65 73 73 20 |n.....; |address |
|00000670| 6f 66 20 6f 75 72 20 71 | 75 65 75 65 20 65 6e 74 |of our q|ueue ent|
|00000680| 72 79 0d 09 6d 6f 76 65 | 2e 77 09 44 33 2c 2d 28 |ry..move|.w.D3,-(|
|00000690| 41 37 29 09 09 09 09 3b | 20 74 79 70 65 20 6f 66 |A7)....;| type of|
|000006a0| 20 70 65 72 69 6f 64 69 | 63 0d 0d 09 6c 65 61 09 | periodi|c...lea.|
|000006b0| 09 6d 61 69 6e 2c 41 30 | 09 09 09 09 09 3b 20 73 |.main,A0|.....; s|
|000006c0| 6f 20 79 6f 75 20 63 61 | 6e 20 64 6f 20 52 65 6d |o you ca|n do Rem|
|000006d0| 65 6d 62 65 72 41 30 0d | 0d 09 6a 73 72 09 09 64 |emberA0.|..jsr..d|
|000006e0| 6f 45 78 65 63 75 74 65 | 0d 0d 09 75 6e 6c 6b 09 |oExecute|...unlk.|
|000006f0| 41 36 0d 09 6d 6f 76 65 | 2e 6c 09 28 53 50 29 2b |A6..move|.l.(SP)+|
|00000700| 2c 41 30 0d 09 61 64 64 | 61 2e 6c 09 23 36 2c 53 |,A0..add|a.l.#6,S|
|00000710| 50 0d 09 6a 6d 70 09 09 | 28 41 30 29 0d 09 7d 0d |P..jmp..|(A0)..}.|
|00000720| 7d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000790| 20 53 65 74 56 6f 6c 75 | 6d 65 58 68 64 72 2e 63 | SetVolu|meXhdr.c|
|000007a0| 20 20 24 0d 09 24 52 65 | 76 69 73 69 6f 6e 3a 20 | $..$Re|vision: |
|000007b0| 0c 53 61 6d 70 6c 65 58 | 68 64 72 2e 63 58 02 00 |.SampleX|hdr.cX..|
|000007c0| 00 00 54 45 4d 50 44 53 | 45 41 00 00 00 00 00 00 |..TEMPDS|EA......|
|000007d0| 00 00 54 45 4d 50 44 53 | 45 41 00 00 00 00 00 00 |..TEMPDS|EA......|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 a6 4a 8c 1b 00 00 | 06 a2 00 00 01 7e 68 65 |...J....|.....~he|
|00000800| 61 64 65 72 20 66 6f 72 | 20 54 68 69 6e 6b 20 43 |ader for| Think C|
|00000810| 0d 0d 09 a9 20 31 39 39 | 30 20 43 45 20 53 6f 66 |.... 199|0 CE Sof|
|00000820| 74 77 61 72 65 2c 20 49 | 6e 63 2e 20 20 41 6c 6c |tware, I|nc. All|
|00000830| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|00000840| 2e 0d 09 09 09 0d 09 57 | 48 45 4e 09 57 48 4f 09 |.......W|HEN.WHO.|
|00000850| 09 57 48 41 54 0d 0d 43 | 68 65 63 6b 65 64 20 69 |.WHAT..C|hecked i|
|00000860| 6e 20 62 79 20 4d 61 72 | 73 68 20 47 6f 73 6e 65 |n by Mar|sh Gosne|
|00000870| 6c 6c 2c 20 57 65 64 6e | 65 73 64 61 79 2c 20 53 |ll, Wedn|esday, S|
|00000880| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 00 00 00 00 00 00 00 06 | 00 04 00 50 00 20 03 5d |........|...P. .]|
|000008b0| 02 3d 00 50 00 20 03 5d | 02 3d a3 12 9f 8b 00 00 |.=.P. .]|.=......|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|000008d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 3d f1 10 |...L...L|...2.=..|
|000008e0| 09 30 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.0.....2|..MPSR..|
|000008f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 3f b1 a0 00 00 |........|...?....|
+--------+-------------------------+-------------------------+--------+--------+